﻿package com.crl.module.cmpRpc.behavior
{
	import flash.net.NetConnection;
	import flash.net.Responder;
	
	/**
	 * ...
	 * @author crl
	 */
	public class AmfRequest extends AbstractRequestBehavior
	{
		//private var service:Service;
		private var netconnection:NetConnection;
		public function AmfRequest(netconnection:NetConnection) 
		{
			this.netconnection=netconnection;
		}
		
		override public function request(o:Object=null):RemoteToken {
			this.netconnection.call(_method,new Responder(resultHandler,errorHandler),_parms);
			return this.token;
		}
		
	}

}